package org.gr.ias.common.entity;

import java.io.Serializable;
import java.util.Date;

public class ProjectMessageConfig implements Serializable {
    /** id*/
    private String id;

    /** 订阅项目类型*/
    private String type;

    /** 项目发布者*/
    private String releaseType;

    /** 项目类型*/
    private String projectType;

    /** 关注行业*/
    private String followIndustry;

    /** 关注地区*/
    private String followRegion;

    /** 资金来源*/
    private String moneyFrom;

    /** 创建人*/
    private String createUser;

    /** 创建时间*/
    private Date createTime;

    /** 修改人*/
    private String modifyUser;

    /** 修改时间*/
    private Date modifyTime;

    /** 资料状态(1:正常,2:禁用,3.逻辑删除)*/
    private Integer flag;

    /** 关注行业描述*/
    private String followIndustryText;

    /** 关注地区描述*/
    private String followRegionText;

    /** 资金来源描述*/
    private String moneyFromText;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getReleaseType() {
        return releaseType;
    }

    public void setReleaseType(String releaseType) {
        this.releaseType = releaseType == null ? null : releaseType.trim();
    }

    public String getProjectType() {
        return projectType;
    }

    public void setProjectType(String projectType) {
        this.projectType = projectType == null ? null : projectType.trim();
    }

    public String getFollowIndustry() {
        return followIndustry;
    }

    public void setFollowIndustry(String followIndustry) {
        this.followIndustry = followIndustry == null ? null : followIndustry.trim();
    }

    public String getFollowRegion() {
        return followRegion;
    }

    public void setFollowRegion(String followRegion) {
        this.followRegion = followRegion == null ? null : followRegion.trim();
    }

    public String getMoneyFrom() {
        return moneyFrom;
    }

    public void setMoneyFrom(String moneyFrom) {
        this.moneyFrom = moneyFrom == null ? null : moneyFrom.trim();
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser == null ? null : modifyUser.trim();
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getFollowIndustryText() {
        return followIndustryText;
    }

    public void setFollowIndustryText(String followIndustryText) {
        this.followIndustryText = followIndustryText == null ? null : followIndustryText.trim();
    }

    public String getFollowRegionText() {
        return followRegionText;
    }

    public void setFollowRegionText(String followRegionText) {
        this.followRegionText = followRegionText == null ? null : followRegionText.trim();
    }

    public String getMoneyFromText() {
        return moneyFromText;
    }

    public void setMoneyFromText(String moneyFromText) {
        this.moneyFromText = moneyFromText == null ? null : moneyFromText.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProjectMessageConfig other = (ProjectMessageConfig) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getReleaseType() == null ? other.getReleaseType() == null : this.getReleaseType().equals(other.getReleaseType()))
            && (this.getProjectType() == null ? other.getProjectType() == null : this.getProjectType().equals(other.getProjectType()))
            && (this.getFollowIndustry() == null ? other.getFollowIndustry() == null : this.getFollowIndustry().equals(other.getFollowIndustry()))
            && (this.getFollowRegion() == null ? other.getFollowRegion() == null : this.getFollowRegion().equals(other.getFollowRegion()))
            && (this.getMoneyFrom() == null ? other.getMoneyFrom() == null : this.getMoneyFrom().equals(other.getMoneyFrom()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifyUser() == null ? other.getModifyUser() == null : this.getModifyUser().equals(other.getModifyUser()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))
            && (this.getFlag() == null ? other.getFlag() == null : this.getFlag().equals(other.getFlag()))
            && (this.getFollowIndustryText() == null ? other.getFollowIndustryText() == null : this.getFollowIndustryText().equals(other.getFollowIndustryText()))
            && (this.getFollowRegionText() == null ? other.getFollowRegionText() == null : this.getFollowRegionText().equals(other.getFollowRegionText()))
            && (this.getMoneyFromText() == null ? other.getMoneyFromText() == null : this.getMoneyFromText().equals(other.getMoneyFromText()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getReleaseType() == null) ? 0 : getReleaseType().hashCode());
        result = prime * result + ((getProjectType() == null) ? 0 : getProjectType().hashCode());
        result = prime * result + ((getFollowIndustry() == null) ? 0 : getFollowIndustry().hashCode());
        result = prime * result + ((getFollowRegion() == null) ? 0 : getFollowRegion().hashCode());
        result = prime * result + ((getMoneyFrom() == null) ? 0 : getMoneyFrom().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifyUser() == null) ? 0 : getModifyUser().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        result = prime * result + ((getFlag() == null) ? 0 : getFlag().hashCode());
        result = prime * result + ((getFollowIndustryText() == null) ? 0 : getFollowIndustryText().hashCode());
        result = prime * result + ((getFollowRegionText() == null) ? 0 : getFollowRegionText().hashCode());
        result = prime * result + ((getMoneyFromText() == null) ? 0 : getMoneyFromText().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", type=").append(type);
        sb.append(", releaseType=").append(releaseType);
        sb.append(", projectType=").append(projectType);
        sb.append(", followIndustry=").append(followIndustry);
        sb.append(", followRegion=").append(followRegion);
        sb.append(", moneyFrom=").append(moneyFrom);
        sb.append(", createUser=").append(createUser);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyUser=").append(modifyUser);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", flag=").append(flag);
        sb.append(", followIndustryText=").append(followIndustryText);
        sb.append(", followRegionText=").append(followRegionText);
        sb.append(", moneyFromText=").append(moneyFromText);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}